package codefactroy

import (
	"gitee.com/ichub/goconfig/common/base/baseiface"
	"gitee.com/ichub/goconfig/common/basedi"
)

const singleNameCodeFactroy = "CodeFactroy"

// init
// register
// load
func init() {
	registerBeanCodeFactroy()
}

// register CodeFactroy
func registerBeanCodeFactroy() {
	basedi.RegisterLoadBean(singleNameCodeFactroy, LoadCodeFactroy)
}

func FindBeanCodeFactroy() *CodeFactroy {
	return basedi.FindBean(singleNameCodeFactroy).(*CodeFactroy)
}

func LoadCodeFactroy() baseiface.ISingleton {
	return NewCodeFactroy()
}
